﻿<UserControl x:Class="EasySL.UI.Controls.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:sCtrl="clr-namespace:EasySL.Controls;assembly=EasySL.Controls"
    >
    
    <Grid x:Name="LayoutRoot">
        <Grid Background="Black" Opacity="0.8"></Grid>
        <sCtrl:DialogPanel x:Name="login" Background="White" Height="120" Width="250" Title="User Login" DragEnable="True" >
            <sCtrl:DialogPanel.Content>
                <sCtrl:Activity x:Name="activity" Message="Verifing user....">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Row="0" Grid.Column="0" Margin="3">UserName:</TextBlock>
                        <TextBox Grid.Row="0" Grid.Column="1" x:Name="userName" Margin="3" Text="admin"></TextBox>

                        <TextBlock Grid.Row="1" Grid.Column="0" Margin="3" Text="admin">Password:</TextBlock>
                        <PasswordBox Grid.Row="1" Grid.Column="1" x:Name="password" Margin="3" Password="admin"></PasswordBox>
                        <Grid Grid.Row="2" Grid.ColumnSpan="2">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Button x:Name="submit" Content="Login"></Button>
                            <TextBlock Grid.Column="1" x:Name="notice" Foreground="Red" Visibility="Collapsed" Margin="3">password error</TextBlock>
                        </Grid>

                    </Grid>
                </sCtrl:Activity>
            </sCtrl:DialogPanel.Content>
        </sCtrl:DialogPanel>
    </Grid>
  
</UserControl>
